package main

import (
	"fmt"
)

type Hero1 struct {
	name  string
	ad    int
	level int
}

func (this *Hero1) show() {
	fmt.Println("name = ", this.name)
	fmt.Println("ad = ", this.ad)
	fmt.Println("level = ", this.level)
}

func (this *Hero1) getName() string {
	return this.name
}

func (this *Hero1) setName(newName string) {
	this.name = newName
}

func main() {
	hero1 := Hero1{name: "千羽", ad: 21, level: 21}
	fmt.Println(hero1)
	hero1.show()
	fmt.Println("-------------- 千羽 -------------")
	hero1.setName("布偶猫")
	hero1.show()
}
